﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Organizer.ViewModel;
using Organizer.Model;
using System.Windows.Navigation;
using Microsoft.Phone.Tasks;
using System.IO;
using System.Xml;
using System.ServiceModel;
using System.ServiceModel.Syndication;

namespace Organizer
{
    public partial class MainPage : PhoneApplicationPage
    {
        private string feedToSave;

        private MainPageViewModel _viewModel;

        public MainPageViewModel ViewModel
        {
            get
            {
                return _viewModel;
            }
            set
            {
                _viewModel = value;
            }
        }

        // Constructor
        public MainPage()
        {
            InitializeComponent();
            // Включаем эффект нажатия на тайл (по умолчанию его нет)
            TiltEffect.TiltableItems.Add(typeof(TiltableGrid));

            ViewModel = new MainPageViewModel();

            // Set the data context of the listbox control to the sample data
            DataContext = ViewModel;
        }
    }

    public class TiltableGrid : Grid
    {
    }

}